package br.com.fromtis.jsf.packtestes;

import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import org.junit.Test;
import br.com.fromtis.jsf.modal.entity.Categoria;



public class Teste {
	
	
	@Test
	public void test () {
		Categoria categoria = new Categoria();
		Field fl[] = categoria.getClass().getDeclaredFields();
		Annotation[] ant = null;
		for ( Field field : fl ) {
	       ant = field.getDeclaredAnnotations();
        }
		
		for( Annotation ants : ant) {
			System.out.println( ants.toString() );
		}
	}
	
}
